<?php

namespace Biz\service\activity\lottery;

class LotteryActivityService
{
    protected $uuid;
    protected $times;

    public function __destruct()
    {


    }

    public function register()
    {

    }

    public function run()
    {
        try {
            //扣减抽奖次数
            $this->getTimes();
            //规则校验
            $this->rules();
            //抽奖
            $gift = $this->lottery();
            //中奖信息
            $this->formatGift($gift);
            //中奖后触发行为
            $this->trigger();
        } catch (\Exception $e) {

        }
    }


    public function rules()
    {

    }

    public function getTimes()
    {

    }

    public function lottery()
    {

    }

    public function formatGift()
    {

    }

    public function trigger()
    {

    }

}